package com.xwaf.platform.system.provider.task;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.PersistJobDataAfterExecution;
import org.springframework.scheduling.quartz.QuartzJobBean;

import lombok.extern.slf4j.Slf4j;

/**
 * 
 * <p>
 * Quartz job类
 * <p>
 * 
 * @author 李聪 <br>
 * @email xwaf_love@yeah.net <br>
 * @since JDK 1.8<br>
 * @date 2019年12月27日 下午7:54:12 <br>
 * @see 无<br>
 *      Copyright (c) 2019, xwaf_love@yeah.net All Rights Reserved.<br>
 */
@Slf4j
@PersistJobDataAfterExecution // 持久化
@DisallowConcurrentExecution // 禁止并发执行(Quartz不要并发地执行同一个job定义（这里指一个job类的多个实例）)
public class TestTask extends QuartzJobBean {

	@Override
	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
//		log.info("....TestTask 测试我的分布式任務:{}....", context.getTrigger().getKey());
	}
}
